Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10760 from lrytz/t12987
Normalize reference to undet param in stabilizer
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
object typeMember { | ||
class Foo { | ||
type FT | ||
class I | ||
def m(b: FT, o: Option[I]): Int = 0 | ||
} | ||
|
||
object Test { | ||
def f[T]: Foo { type FT = T } = ??? | ||
def t = { | ||
val b: Any = ??? | ||
f.m(b, None) | ||
} | ||
} | ||
} | ||
|
||
object typeParam { | ||
class Foo[FT] { | ||
class I | ||
def m(b: FT, o: Option[I]): Int = 0 | ||
} | ||
|
||
object Test { | ||
def f[T]: Foo[T] = ??? | ||
def t = { | ||
val b: Any = ??? | ||
f.m(b, None) | ||
} | ||
} | ||
} |