Skip to content

Commit f1bb4b3

Browse files
Add -source:3.8 option to all appropriate tests
1 parent 2238324 commit f1bb4b3

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

tests/neg/i3989e.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -source:3.8
2+
13
object Test extends App {
24
trait A[+X](val x: X)
35
class B extends A(5) with A("hello") // error: A is extended twice // error: class B cannot be instantiated since it has conflicting base types Test.A[Int] and Test.A[String]

tests/pos/cb-companion-joins.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//> using options -source:3.8
12
import language.experimental.modularity
23

34
trait M[Self]:

tests/pos/i10256.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -source:3.8
2+
13
trait Foo[T <: Foo[T]] {
24
type I <: Foo[I]
35
}

tests/pos/i11064.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -source:3.8
2+
13
trait TypedArray[T, Repr]
24

35
trait Ops[T <: TypedArray[_, T]] {

0 commit comments

Comments
 (0)