Skip to content

Commit bef8427

Browse files
committed
Use //> using directive in compilation tests
* Set options with `//> using` * Put together tests that need deep subtypes * -Ycheck tests/run/typeclass-derivation1.scala [Cherry-picked daeee35][modified]
1 parent ccda945 commit bef8427

File tree

146 files changed

+247
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+247
-76
lines changed

compiler/test/dotc/pos-test-pickling.blacklist

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ t5031_2.scala
2323
i16997.scala
2424
i7414.scala
2525
i17588.scala
26+
i9804.scala
27+
i13433.scala
28+
i16649-irrefutable.scala
29+
strict-pattern-bindings-3.0-migration.scala
2630

2731
# Tree is huge and blows stack for printing Text
2832
i7034.scala

compiler/test/dotty/tools/dotc/CompilationTests.scala

+15-39
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,16 @@ class CompilationTests {
3030
@Test def pos: Unit = {
3131
implicit val testGroup: TestGroup = TestGroup("compilePos")
3232
var tests = List(
33-
compileFile("tests/pos/nullarify.scala", defaultOptions.and("-Ycheck:nullarify")),
34-
compileFile("tests/pos-special/utf8encoded.scala", explicitUTF8),
35-
compileFile("tests/pos-special/utf16encoded.scala", explicitUTF16),
33+
compileFilesInDir("tests/pos", defaultOptions.and("-Ysafe-init")),
34+
compileFilesInDir("tests/pos-deep-subtype", allowDeepSubtypes),
3635
compileFilesInDir("tests/pos-special/sourcepath/outer", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
3736
compileFile("tests/pos-special/sourcepath/outer/nested/Test4.scala", defaultOptions.and("-sourcepath", "tests/pos-special/sourcepath")),
38-
compileFilesInDir("tests/pos-special/fatal-warnings", defaultOptions.and("-Xfatal-warnings", "-deprecation", "-feature")),
39-
compileFilesInDir("tests/pos-special/spec-t5545", defaultOptions),
40-
compileFilesInDir("tests/pos-special/strawman-collections", allowDeepSubtypes),
41-
compileFilesInDir("tests/pos-special/isInstanceOf", allowDeepSubtypes.and("-Xfatal-warnings")),
42-
compileFilesInDir("tests/new", defaultOptions.and("-source", "3.2")), // just to see whether 3.2 works
43-
compileFilesInDir("tests/pos-scala2", scala2CompatMode),
37+
compileFilesInDir("tests/pos-scala2", defaultOptions.and("-source", "3.0-migration")),
4438
compileFilesInDir("tests/pos-custom-args/captures", defaultOptions.and("-language:experimental.captureChecking")),
45-
compileFilesInDir("tests/pos", defaultOptions.and("-Ysafe-init")),
39+
compileFile("tests/pos-special/utf8encoded.scala", defaultOptions.and("-encoding", "UTF8")),
40+
compileFile("tests/pos-special/utf16encoded.scala", defaultOptions.and("-encoding", "UTF16")),
4641
// Run tests for legacy lazy vals
4742
compileFilesInDir("tests/pos", defaultOptions.and("-Ysafe-init", "-Ylegacy-lazy-vals", "-Ycheck-constraint-deps"), FileFilter.include(TestSources.posLazyValsAllowlist)),
48-
compileFilesInDir("tests/pos-deep-subtype", allowDeepSubtypes),
4943
compileDir("tests/pos-special/java-param-names", defaultOptions.withJavacOnlyOptions("-parameters")),
5044
)
5145

@@ -59,7 +53,7 @@ class CompilationTests {
5953
implicit val testGroup: TestGroup = TestGroup("rewrites")
6054

6155
aggregateTests(
62-
compileFile("tests/rewrites/rewrites.scala", scala2CompatMode.and("-rewrite", "-indent")),
56+
compileFile("tests/rewrites/rewrites.scala", defaultOptions.and("-source", "3.0-migration").and("-rewrite", "-indent")),
6357
compileFile("tests/rewrites/rewrites3x.scala", defaultOptions.and("-rewrite", "-source", "future-migration")),
6458
compileFile("tests/rewrites/rewrites3x.scala", defaultOptions.and("-rewrite", "-source", "future-migration", "-Xfatal-warnings")),
6559
compileFile("tests/rewrites/filtering-fors.scala", defaultOptions.and("-rewrite", "-source", "3.2-migration")),
@@ -120,27 +114,14 @@ class CompilationTests {
120114
implicit val testGroup: TestGroup = TestGroup("compileNeg")
121115
aggregateTests(
122116
compileFilesInDir("tests/neg", defaultOptions),
123-
compileFilesInDir("tests/neg-tailcall", defaultOptions),
124-
compileFilesInDir("tests/neg-strict", defaultOptions.and("-source", "future", "-deprecation", "-Xfatal-warnings")),
125-
compileFilesInDir("tests/neg-custom-args/allow-double-bindings", allowDoubleBindings),
126-
compileFilesInDir("tests/neg-custom-args/allow-deep-subtypes", allowDeepSubtypes),
117+
compileFilesInDir("tests/neg-deep-subtype", allowDeepSubtypes),
127118
compileFilesInDir("tests/neg-custom-args/captures", defaultOptions.and("-language:experimental.captureChecking")),
128-
compileFile("tests/neg-custom-args/i1650.scala", allowDeepSubtypes),
129-
compileFile("tests/neg-custom-args/i3882.scala", allowDeepSubtypes),
130-
compileFile("tests/neg-custom-args/i4372.scala", allowDeepSubtypes),
131-
compileFile("tests/neg-custom-args/i1754.scala", allowDeepSubtypes),
132-
compileFile("tests/neg-custom-args/i12650.scala", allowDeepSubtypes),
133-
compileFile("tests/neg-custom-args/interop-polytypes.scala", allowDeepSubtypes.and("-Yexplicit-nulls")),
134-
compileFile("tests/neg-custom-args/conditionalWarnings.scala", allowDeepSubtypes.and("-deprecation").and("-Xfatal-warnings")),
135-
compileFilesInDir("tests/neg-custom-args/isInstanceOf", allowDeepSubtypes and "-Xfatal-warnings"),
136-
compileFile("tests/neg-custom-args/i3627.scala", allowDeepSubtypes),
137119
compileFile("tests/neg-custom-args/sourcepath/outer/nested/Test1.scala", defaultOptions.and("-sourcepath", "tests/neg-custom-args/sourcepath")),
138120
compileDir("tests/neg-custom-args/sourcepath2/hi", defaultOptions.and("-sourcepath", "tests/neg-custom-args/sourcepath2", "-Xfatal-warnings")),
139121
compileList("duplicate source", List(
140122
"tests/neg-custom-args/toplevel-samesource/S.scala",
141123
"tests/neg-custom-args/toplevel-samesource/nested/S.scala"),
142124
defaultOptions),
143-
compileFile("tests/neg-custom-args/i6300.scala", allowDeepSubtypes),
144125
compileFile("tests/neg/i7575.scala", defaultOptions.withoutLanguageFeatures.and("-language:_")),
145126
).checkExpectedErrors()
146127
}
@@ -155,12 +136,9 @@ class CompilationTests {
155136
@Test def runAll: Unit = {
156137
implicit val testGroup: TestGroup = TestGroup("runAll")
157138
aggregateTests(
158-
compileFile("tests/run-custom-args/typeclass-derivation1.scala", defaultOptions.without(yCheckOptions*)),
159-
compileFile("tests/run-custom-args/tuple-cons.scala", allowDeepSubtypes),
160-
compileFile("tests/run-custom-args/i5256.scala", allowDeepSubtypes),
161-
compileFilesInDir("tests/run-custom-args/captures", allowDeepSubtypes.and("-language:experimental.captureChecking")),
162-
compileFilesInDir("tests/run-deep-subtype", allowDeepSubtypes),
163139
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init")),
140+
compileFilesInDir("tests/run-deep-subtype", allowDeepSubtypes),
141+
compileFilesInDir("tests/run-custom-args/captures", allowDeepSubtypes.and("-language:experimental.captureChecking")),
164142
// Run tests for legacy lazy vals.
165143
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init", "-Ylegacy-lazy-vals", "-Ycheck-constraint-deps"), FileFilter.include(TestSources.runLazyValsAllowlist)),
166144
).checkRuns()
@@ -178,7 +156,6 @@ class CompilationTests {
178156
@Test def pickling: Unit = {
179157
implicit val testGroup: TestGroup = TestGroup("testPickling")
180158
aggregateTests(
181-
compileFilesInDir("tests/new", picklingOptions),
182159
compileFilesInDir("tests/pos", picklingOptions, FileFilter.exclude(TestSources.posTestPicklingBlacklisted)),
183160
compileFilesInDir("tests/run", picklingOptions, FileFilter.exclude(TestSources.runTestPicklingBlacklisted))
184161
).checkCompile()
@@ -188,8 +165,7 @@ class CompilationTests {
188165
def recheck: Unit =
189166
given TestGroup = TestGroup("recheck")
190167
aggregateTests(
191-
compileFilesInDir("tests/new", recheckOptions),
192-
compileFilesInDir("tests/run", recheckOptions, FileFilter.exclude(TestSources.runTestRecheckExcluded))
168+
compileFilesInDir("tests/run", defaultOptions.and("-Yrecheck-test"), FileFilter.exclude(TestSources.runTestRecheckExcluded))
193169
//Disabled to save some time.
194170
//compileFilesInDir("tests/pos", recheckOptions, FileFilter.exclude(TestSources.posTestRecheckExcluded)),
195171
).checkCompile()
@@ -198,22 +174,22 @@ class CompilationTests {
198174
@Test def explicitNullsNeg: Unit = {
199175
implicit val testGroup: TestGroup = TestGroup("explicitNullsNeg")
200176
aggregateTests(
201-
compileFilesInDir("tests/explicit-nulls/neg", explicitNullsOptions),
202-
compileFilesInDir("tests/explicit-nulls/unsafe-common", explicitNullsOptions),
177+
compileFilesInDir("tests/explicit-nulls/neg", defaultOptions and "-Yexplicit-nulls"),
178+
compileFilesInDir("tests/explicit-nulls/unsafe-common", defaultOptions and "-Yexplicit-nulls"),
203179
)
204180
}.checkExpectedErrors()
205181

206182
@Test def explicitNullsPos: Unit = {
207183
implicit val testGroup: TestGroup = TestGroup("explicitNullsPos")
208184
aggregateTests(
209-
compileFilesInDir("tests/explicit-nulls/pos", explicitNullsOptions),
210-
compileFilesInDir("tests/explicit-nulls/unsafe-common", explicitNullsOptions and "-language:unsafeNulls"),
185+
compileFilesInDir("tests/explicit-nulls/pos", defaultOptions and "-Yexplicit-nulls"),
186+
compileFilesInDir("tests/explicit-nulls/unsafe-common", defaultOptions and "-Yexplicit-nulls" and "-language:unsafeNulls"),
211187
)
212188
}.checkCompile()
213189

214190
@Test def explicitNullsRun: Unit = {
215191
implicit val testGroup: TestGroup = TestGroup("explicitNullsRun")
216-
compileFilesInDir("tests/explicit-nulls/run", explicitNullsOptions)
192+
compileFilesInDir("tests/explicit-nulls/run", defaultOptions and "-Yexplicit-nulls")
217193
}.checkRuns()
218194

219195
// initialization tests

compiler/test/dotty/tools/vulpix/TestConfiguration.scala

-7
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@ object TestConfiguration {
8484
)
8585
val picklingWithCompilerOptions =
8686
picklingOptions.withClasspath(withCompilerClasspath).withRunClasspath(withCompilerClasspath)
87-
val recheckOptions = defaultOptions.and("-Yrecheck-test")
88-
val scala2CompatMode = defaultOptions.and("-source", "3.0-migration")
89-
val explicitUTF8 = defaultOptions and ("-encoding", "UTF8")
90-
val explicitUTF16 = defaultOptions and ("-encoding", "UTF16")
91-
92-
/** Enables explicit nulls */
93-
val explicitNullsOptions = defaultOptions and "-Yexplicit-nulls"
9487

9588
/** Default target of the generated class files */
9689
private def defaultTarget: String = {

tests/neg-custom-args/isInstanceOf/1828.scala renamed to tests/neg-deep-subtype/1828.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class Test {
24
def remove[S](a: S | Int, f: Int => S):S = a match {
35
case a: S => a // error

tests/neg-custom-args/isInstanceOf/3324b.scala renamed to tests/neg-deep-subtype/3324b.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class C[T] {
24
val x: Any = ???
35
if (x.isInstanceOf[List[String]]) // error: unchecked

tests/neg-custom-args/isInstanceOf/3324f.scala renamed to tests/neg-deep-subtype/3324f.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
trait C[T]
24
class D[T]
35

tests/neg-custom-args/isInstanceOf/3324g.scala renamed to tests/neg-deep-subtype/3324g.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class Test {
24
trait A[+T]
35
class B[T] extends A[T]

tests/neg-custom-args/isInstanceOf/4075.scala.ignore renamed to tests/neg-deep-subtype/4075.scala.ignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
object Test {
24
trait Foo
35
case class One[+T](fst: T)

tests/neg-custom-args/isInstanceOf/JavaSeqLiteral.scala renamed to tests/neg-deep-subtype/JavaSeqLiteral.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
object Test1 {
24
trait Tree[-T]
35

tests/neg-custom-args/conditionalWarnings.scala renamed to tests/neg-deep-subtype/conditionalWarnings.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
//> using options -deprecation -Xfatal-warnings
12

2-
// run with -deprecation -Xfatal-warnings
33
object Test {
44
@deprecated def foo = ???
55

tests/neg-custom-args/isInstanceOf/enum-approx2.scala renamed to tests/neg-deep-subtype/enum-approx2.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
sealed trait Exp[T]
24
case class Fun[A, B](f: Exp[A => B]) extends Exp[A => B]
35

tests/neg-custom-args/isInstanceOf/gadt.scala renamed to tests/neg-deep-subtype/gadt.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class Test {
24
trait A[+T]
35
class B[T] extends A[T]

tests/neg-custom-args/isInstanceOf/html.scala renamed to tests/neg-deep-subtype/html.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
object HTML:
24
type AttrArg = AppliedAttr | Seq[AppliedAttr]
35
opaque type AppliedAttr = String

tests/neg-custom-args/isInstanceOf/i11178.scala renamed to tests/neg-deep-subtype/i11178.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
trait Box[+T]
24
case class Foo[+S](s: S) extends Box[S]
35

tests/neg-custom-args/isInstanceOf/i17435.scala renamed to tests/neg-deep-subtype/i17435.scala

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
import scala.collection.mutable
24

35
object Test:
@@ -14,10 +16,10 @@ object Test:
1416
type JsonArray = mutable.Buffer[Json]
1517

1618
def encode(x: Json): Int = x match
17-
case str: String => 1
18-
case b: Boolean => 2
19-
case i: Int => 3
20-
case d: Double => 4
19+
case str: String => 1 // error
20+
case b: Boolean => 2 // error
21+
case i: Int => 3 // error
22+
case d: Double => 4 // error
2123
case arr: JsonArray => 5 // error
2224
case obj: JsonObject => 6 // error
2325
case _ => 7

tests/neg-custom-args/isInstanceOf/i3324.scala renamed to tests/neg-deep-subtype/i3324.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class Foo {
24
def foo(x: Any): Boolean =
35
x.isInstanceOf[List[String]] // error

tests/neg-custom-args/isInstanceOf/i4297.scala renamed to tests/neg-deep-subtype/i4297.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class Test {
24
def test[X <: Option[Int]](x: X) = x.isInstanceOf[Some[Int]]
35
def test1[Y <: Int, X <: Option[Y]](x: X) = x.isInstanceOf[Some[Int]]

tests/neg-custom-args/isInstanceOf/i5495.scala renamed to tests/neg-deep-subtype/i5495.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class A
24
class B
35

tests/neg-custom-args/isInstanceOf/i5826.scala renamed to tests/neg-deep-subtype/i5826.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class Foo {
24
def test[A]: (List[Int] | A) => Int = {
35
case ls: List[Int] => ls.head // error, A = List[String]

tests/neg-custom-args/isInstanceOf/i5826b.scala renamed to tests/neg-deep-subtype/i5826b.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class Foo {
24
def test1[A]: List[Int] | A => Int = {
35
case ls: List[_] => ls.head // error

tests/neg-custom-args/allow-deep-subtypes/i5877.scala renamed to tests/neg-deep-subtype/i5877.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object Main {
2525
assert(implicitly[thatSelf.type <:< that.This] != null)
2626
}
2727
val that: HasThisType[_] = Foo() // null.asInstanceOf
28-
testSelf(that) // error
28+
testSelf(that) // error: recursion limit exceeded
2929
}
3030

3131

@@ -36,7 +36,7 @@ object Main {
3636
}
3737
val that: HasThisType[_] = Foo() // null.asInstanceOf
3838
// this line of code makes Dotty compiler infinite recursion (stopped only by overflow) - comment it to make it compilable again
39-
testSelf(that) // error
39+
testSelf(that) // error: recursion limit exceeded
4040
}
4141

4242
// ---- ---- ---- ----

tests/neg-custom-args/isInstanceOf/i8932.scala renamed to tests/neg-deep-subtype/i8932.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
sealed trait Foo[+A]
24
case class Bar[A]() extends Foo[A]
35

tests/neg-custom-args/interop-polytypes.scala renamed to tests/neg-deep-subtype/interop-polytypes.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Yexplicit-nulls
2+
13
class Foo {
24
import java.util.ArrayList
35
// Test that return values in PolyTypes are marked as nullable.

tests/neg-custom-args/isInstanceOf/or-type-trees.scala renamed to tests/neg-deep-subtype/or-type-trees.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
object Test1 {
24
trait Tree
35
trait Context

tests/neg-custom-args/isInstanceOf/patmat-applied.scala renamed to tests/neg-deep-subtype/patmat-applied.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class A[-T]
24
class B[T] extends A[T]
35

tests/neg-custom-args/isInstanceOf/refined-types.scala renamed to tests/neg-deep-subtype/refined-types.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class A
24
class B extends A
35
type AA = A { type T = Int }

tests/neg-custom-args/isInstanceOf/t2755.scala renamed to tests/neg-deep-subtype/t2755.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
// Test cases: the only place we can cut and paste without crying
24
// ourself to sleep.
35
object Test {

tests/neg-custom-args/isInstanceOf/type-lambda.scala renamed to tests/neg-deep-subtype/type-lambda.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
trait A[T]
24
trait B[T] extends A[T]
35

tests/neg-strict/deprecated-override.scala renamed to tests/neg/deprecated-override.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -source future -deprecation -Xfatal-warnings
2+
13
trait A:
24
def f: Int
35

tests/neg-strict/i1050.scala renamed to tests/neg/i1050.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -source future -deprecation -Xfatal-warnings
2+
13
// i1050 checks failing at posttyper
24
trait A { type L <: Nothing }
35
trait B { type L >: Any}

tests/neg-strict/i11225.scala renamed to tests/neg/i11225b.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -source future -deprecation -Xfatal-warnings
2+
13
import compiletime.uninitialized
24

35
class Memo[A](x: => A):

tests/neg-strict/i15479.scala renamed to tests/neg/i15479.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -source future -deprecation -Xfatal-warnings
2+
13
package deptest {
24
@deprecated("Not used any more", since="7")
35
object DeprecatedThing {

tests/neg-strict/i16092.scala renamed to tests/neg/i16092.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -source future -deprecation -Xfatal-warnings
2+
13
trait X {
24
type T
35
def process(t: T): Unit

tests/neg-strict/i5854.scala renamed to tests/neg/i5854.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -source future -deprecation -Xfatal-warnings
2+
13
object bar {
24
trait Sub {
35
type M

tests/neg-strict/nullless.scala renamed to tests/neg/nullless.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -source future -deprecation -Xfatal-warnings
2+
13
object nullless {
24
trait LowerBound[T] {
35
type M >: T;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/new/test.scala

-2
This file was deleted.

tests/pos-special/isInstanceOf/3324c.scala renamed to tests/pos-deep-subtype/3324c.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
sealed trait A[T]
24
class B[T] extends A[T]
35

tests/pos-special/isInstanceOf/3324d.scala renamed to tests/pos-deep-subtype/3324d.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class Test {
24
val x: Any = ???
35

tests/pos-special/isInstanceOf/3324e.scala renamed to tests/pos-deep-subtype/3324e.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
class C[T] {
24
val x: T = ???
35
x.isInstanceOf[T]

tests/pos-special/isInstanceOf/3324h.scala renamed to tests/pos-deep-subtype/3324h.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//> using options -Xfatal-warnings
2+
13
object Test {
24
trait Marker
35
def foo[T](x: T) = x match {

0 commit comments

Comments
 (0)