-
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.
Merge pull request #11920 from dotty-staging/fix-11774-v2
Only enable experimental features for snapshot and nightly (V2)
- Loading branch information
Showing
15 changed files
with
92 additions
and
29 deletions.
There are no files selected for viewing
Submodule scalap
updated
6 files
Submodule stdLib213
updated
8 files
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
package dotty.tools.dotc.config | ||
import annotation.internal.sharable | ||
|
||
object Config { | ||
|
||
|
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
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,34 @@ | ||
class Test0 { | ||
import language.experimental.namedTypeArguments // error | ||
object Foo { | ||
inline def f[S, T](x: S): T = ??? | ||
def g(x: Int) = f[T = Any](x) | ||
} | ||
} | ||
|
||
class Test1 { | ||
import scala.language.experimental.erasedDefinitions // error | ||
import scala.compiletime.erasedValue | ||
type UnivEq[A] | ||
object UnivEq: | ||
erased def force[A]: UnivEq[A] = erasedValue | ||
extension [A](erased proof: UnivEq[A]) | ||
inline def univEq(a: A, b: A): Boolean = | ||
a == b | ||
} | ||
|
||
class Test2 { | ||
import _root_.scala.language.experimental.{genericNumberLiterals, namedTypeArguments => _} // error | ||
val x: BigInt = 13232202002020202020202 | ||
val y: BigInt = -0xaabb12345ACF12345AC | ||
} | ||
|
||
class Test6 { | ||
import scala.language.experimental // ok | ||
} | ||
|
||
class Test7 { | ||
import scala.language.experimental | ||
import experimental.genericNumberLiterals // error: no aliases can be used to refer to a language import | ||
val x: BigInt = 13232202002020202020202 // error | ||
} |