diff --git a/compiler/testData/repl/imports.repl b/compiler/testData/repl/imports.repl new file mode 100644 index 00000000000..a36b700c757 --- /dev/null +++ b/compiler/testData/repl/imports.repl @@ -0,0 +1,6 @@ +>>> import java.io.ByteArrayOutputStream +null +>>> val s = ByteArrayOutputStream() +null +>>> s.getClass()!!.getName() +java.io.ByteArrayOutputStream diff --git a/compiler/tests/org/jetbrains/jet/repl/ReplInterpreterTest.java b/compiler/tests/org/jetbrains/jet/repl/ReplInterpreterTest.java index f6db5a44202..11364cab85b 100644 --- a/compiler/tests/org/jetbrains/jet/repl/ReplInterpreterTest.java +++ b/compiler/tests/org/jetbrains/jet/repl/ReplInterpreterTest.java @@ -97,5 +97,10 @@ public class ReplInterpreterTest { testFile("empty.repl"); } + @Test + public void imports() { + testFile("imports.repl"); + } + }