-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Don't explain erroneous bounds #19338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- [E081] Type Error: tests/neg/i19334.scala:6:4 ----------------------------------------------------------------------- | ||
6 | f(_) // error was OOM formatting TypeVar(TypeParamRef(T)) when offering explanations | ||
| ^ | ||
| Missing parameter type | ||
| | ||
| I could not infer the type of the parameter _$1 | ||
| in expanded function: | ||
| _$1 => f(_$1) | ||
| Expected type for the whole anonymous function: | ||
| T | ||
| | ||
| where: T is a type variable |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
def foo[T](f: T): T = ??? | ||
|
||
@main def main = foo: | ||
def f() = () | ||
f(_) // error was OOM formatting TypeVar(TypeParamRef(T)) when offering explanations | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it might be worth adding a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. footnote I had one locally. I'm unaccustomed to the dotty-local customs around check files. shell history
I need shell history with comments, to tell me why I decided to do that. |
Uh oh!
There was an error while loading. Please reload this page.