Skip to content

Commit fcb9a92

Browse files
committed
Update tests
1 parent 715b9a6 commit fcb9a92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/test/dotty/tools/repl/ShadowingTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class ShadowingTests extends ReplTest(options = ShadowingTests.options):
122122
|val y: String = foo
123123
|
124124
|scala> if (true) x else y
125-
|val res0: Matchable = 42
125+
|val res0: Int | String = 42
126126
|""".stripMargin.linesIterator.toList
127127
)
128128

tests/semanticdb/metac.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ Symbols:
17861786
example/InstrumentTyper# => class InstrumentTyper extends Object { self: AnyRef & InstrumentTyper => +5 decls }
17871787
example/InstrumentTyper#AnnotatedType# => type AnnotatedType = Int @param
17881788
example/InstrumentTyper#`<init>`(). => primary ctor <init> (): InstrumentTyper
1789-
example/InstrumentTyper#all(). => method all => List[Matchable]
1789+
example/InstrumentTyper#all(). => method all => List[Float | Double | List[Nothing] | Boolean | Unit | Char | String | LinkOption | Int | Long | Class[Option[Int]]]
17901790
example/InstrumentTyper#clazzOf. => final val method clazzOf Option[Int]
17911791
example/InstrumentTyper#singletonType(). => method singletonType (param x: Predef.type): Nothing
17921792
example/InstrumentTyper#singletonType().(x) => param x: Predef.type
@@ -1847,7 +1847,7 @@ Occurrences:
18471847
[24:37..24:40): Int -> scala/Int#
18481848

18491849
Synthetics:
1850-
[8:12..8:16):List => *.apply[Matchable]
1850+
[8:12..8:16):List => *.apply[Float | Double | List[Nothing] | Boolean | Unit | Char | String | LinkOption | Int | Long | Class[Option[Int]]]
18511851
[20:4..20:8):List => *.apply[Nothing]
18521852

18531853
expect/InventedNames.scala

0 commit comments

Comments
 (0)