-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move CrossVersionChecks before FirstTransform
Fixes #17292
- Loading branch information
1 parent
3133d85
commit 57c4479
Showing
6 changed files
with
48 additions
and
35 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
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
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,7 @@ | ||
import annotation.experimental | ||
|
||
class Foo { @experimental type Bar = (Int, String) } | ||
|
||
val f: Foo = Foo() | ||
|
||
def g: Tuple.Elem[f.Bar, 0] = ??? // error |
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,21 @@ | ||
import annotation.experimental | ||
type A[T] = Int | ||
class Foo { | ||
@experimental type Bar = (Int, String) | ||
} | ||
|
||
type Elem1[X <: Tuple, N <: Int] = X match { case x *: xs => N match { case 0 => x } } | ||
type Elem2[X <: Tuple, N <: Int] | ||
|
||
val f: Foo = Foo() | ||
|
||
def bar1: f.Bar = ??? // error | ||
def bar2 = // error | ||
??? : f.Bar // error | ||
|
||
def g0: Elem1[f.Bar, 0] = ??? // error | ||
def g1(a: Elem1[f.Bar, 0]) = ??? // error | ||
def g2 = | ||
??? : Elem1[f.Bar, 0] // error | ||
|
||
def h: Elem2[f.Bar, 0] = ??? // error |