Skip to content

Commit

Permalink
Add lost test from tests/neg-custom-args/no-experimental/experimental…
Browse files Browse the repository at this point in the history
….scala
  • Loading branch information
nicolasstucki committed Aug 30, 2021
1 parent cabfa24 commit 2d61dd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/neg-custom-args/no-experimental/experimental-2.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

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
}
2 changes: 1 addition & 1 deletion tests/neg-custom-args/no-experimental/experimental.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ class Test2 {

class Test6 {
import scala.language.experimental // ok
}
}

0 comments on commit 2d61dd0

Please sign in to comment.