File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/test/dotty/tools/repl Expand file tree Collapse file tree 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 @@ -1786,7 +1786,7 @@ Symbols:
1786
1786
example/InstrumentTyper# => class InstrumentTyper extends Object { self: AnyRef & InstrumentTyper => +5 decls }
1787
1787
example/InstrumentTyper#AnnotatedType# => type AnnotatedType = Int @param
1788
1788
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]] ]
1790
1790
example/InstrumentTyper#clazzOf. => final val method clazzOf Option[Int]
1791
1791
example/InstrumentTyper#singletonType(). => method singletonType (param x: Predef.type): Nothing
1792
1792
example/InstrumentTyper#singletonType().(x) => param x: Predef.type
@@ -1847,7 +1847,7 @@ Occurrences:
1847
1847
[24:37..24:40): Int -> scala/Int#
1848
1848
1849
1849
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]] ]
1851
1851
[20:4..20:8):List => *.apply[Nothing]
1852
1852
1853
1853
expect/InventedNames.scala
You can’t perform that action at this time.
0 commit comments