File tree 2 files changed +3
-3
lines changed
compiler/test/dotty/tools/repl
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ class ShadowingTests extends ReplTest(options = ShadowingTests.options):
122
122
|val y: String = foo
123
123
|
124
124
|scala> if (true) x else y
125
- |val res0: Matchable = 42
125
+ |val res0: Int | String = 42
126
126
|""" .stripMargin.linesIterator.toList
127
127
)
128
128
Original file line number Diff line number Diff line change @@ -1767,7 +1767,7 @@ Symbols:
1767
1767
example/InstrumentTyper# => class InstrumentTyper extends Object { self: AnyRef & InstrumentTyper => +5 decls }
1768
1768
example/InstrumentTyper#AnnotatedType# => type AnnotatedType = Int @param
1769
1769
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]] ]
1771
1771
example/InstrumentTyper#clazzOf. => final val method clazzOf Option[Int]
1772
1772
example/InstrumentTyper#singletonType(). => method singletonType (param x: Predef.type): Nothing
1773
1773
example/InstrumentTyper#singletonType().(x) => param x: Predef.type
@@ -1828,7 +1828,7 @@ Occurrences:
1828
1828
[24:37..24:40): Int -> scala/Int#
1829
1829
1830
1830
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]] ]
1832
1832
[20:4..20:8):List => *.apply[Nothing]
1833
1833
1834
1834
expect/InventedNames.scala
You can’t perform that action at this time.
0 commit comments