Skip to content

Commit b9aa023

Browse files
committed
Update tests
1 parent 069a9eb commit b9aa023

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
@@ -1767,7 +1767,7 @@ Symbols:
17671767
example/InstrumentTyper# => class InstrumentTyper extends Object { self: AnyRef & InstrumentTyper => +5 decls }
17681768
example/InstrumentTyper#AnnotatedType# => type AnnotatedType = Int @param
17691769
example/InstrumentTyper#`<init>`(). => primary ctor <init> (): InstrumentTyper
1770-
example/InstrumentTyper#all(). => method all => List[Matchable]
1770+
example/InstrumentTyper#all(). => method all => List[Float | Double | List[Nothing] | Boolean | Unit | Char | String | LinkOption | Int | Long | Class[Option[Int]]]
17711771
example/InstrumentTyper#clazzOf. => final val method clazzOf Option[Int]
17721772
example/InstrumentTyper#singletonType(). => method singletonType (param x: Predef.type): Nothing
17731773
example/InstrumentTyper#singletonType().(x) => param x: Predef.type
@@ -1828,7 +1828,7 @@ Occurrences:
18281828
[24:37..24:40): Int -> scala/Int#
18291829

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

18341834
expect/InventedNames.scala

0 commit comments

Comments
 (0)