Skip to content

Conversation

WillLillis
Copy link
Contributor

Given:

pub const foo = 5;

//! This is main.
pub fn main() void {}

Before:

1:19: error: expected type expression, found 'a document comment'

After:

1:19: error: expected type expression, found 'a top-level document comment'

Tested locally with stage4/bin/zig build test -Dskip-non-native

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile error for misplaced top-level documentation comment is misleading
1 participant