-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area:parserbetter-errorsIssues concerned with improving confusing/unhelpful diagnostic messagesIssues concerned with improving confusing/unhelpful diagnostic messagesitype:enhancement
Description
Compiler version
3.3.5
Minimized code
This works:
package com.example
class Foo {
var bar: String =
scala.compiletime.uninitialized
}
But this doesn't:
package com.example
class Foo {
var bar: String =
_
}
Output
[error] -- [E017] Syntax Error: ...
[error] 5 | _
[error] | ^
[error] | Unbound placeholder parameter; incorrect use of _
[error] |
[error] | longer explanation available when compiling with `-explain`
[error] one error found
Expectation
I expected both to work.
Metadata
Metadata
Assignees
Labels
area:parserbetter-errorsIssues concerned with improving confusing/unhelpful diagnostic messagesIssues concerned with improving confusing/unhelpful diagnostic messagesitype:enhancement