forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix caching issue caused by incorrect isProvisional check
A static TypeRef can still be provisional if it's currently being completed (see the logic in `Namer#TypeDefCompleter#typeSig`). Fixes scala#16950.
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
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,11 @@ | ||
object Foo: | ||
def bar(x : Bar.YOf[Any]): Unit = ??? | ||
|
||
trait K: | ||
type CType <: Bar.YOf[Any] | ||
def foo : K = | ||
val x : CType = ??? | ||
x // was: error: Found: CType, Expected: K | ||
|
||
object Bar: | ||
type YOf[T] = K { type M } |