We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 836db8d commit 9738d84Copy full SHA for 9738d84
compiler/test/dotty/tools/repl/TabcompleteTests.scala
@@ -235,6 +235,6 @@ class TabcompleteTests extends ReplTest {
235
}
236
237
@Test def i9334 = initially {
238
- assertEquals(Nil, tabComplete("class Foo[T]; classOf[Foo]."))
+ assert(tabComplete("class Foo[T]; classOf[Foo].").contains("getName"))
239
240
tests/new/test.scala
@@ -1,2 +1,9 @@
1
-object Test:
2
- def test = 0
+trait A
+
3
+implicit def stringToA(s: String): A = new A{override def toString = s}
4
+implicit def unitToA(u: Unit): A = new A{override def toString = "Unit"}
5
6
+val a0 = if (System.nanoTime() != 4) "hello"
7
+val a: A = a0
8
+@main def Test =
9
+ println(a)
0 commit comments