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 90d6606 commit e0c33ecCopy full SHA for e0c33ec
compiler/test/dotty/tools/repl/JavaDefinedTests.scala
@@ -0,0 +1,16 @@
1
+package dotty.tools.repl
2
+
3
+import org.junit.Assert._
4
+import org.junit.Test
5
6
+class JavaDefinedTests extends ReplTest {
7
+ @Test def typeOfJavaDefinedString = fromInitialState { implicit s =>
8
+ run("String")
9
+ assertTrue(storedOutput().contains("Java defined class String is not a value"))
10
+ }
11
12
+ @Test def typeOfJavaDefinedClass = fromInitialState { implicit s =>
13
+ run("Class")
14
+ assertTrue(storedOutput().contains("Java defined class Class is not a value"))
15
16
+}
0 commit comments