diff --git a/compiler/testData/codegen/regressions/kt1159.kt b/compiler/testData/codegen/regressions/kt1159.kt new file mode 100644 index 00000000000..c8bb69a04c1 --- /dev/null +++ b/compiler/testData/codegen/regressions/kt1159.kt @@ -0,0 +1,16 @@ +public object RefreshQueue { + private val workerThread: Thread = Thread(object : Runnable { + override fun run() { + workerThread.isInterrupted() + } + }); + + { + workerThread.start() + } +} + +fun box() : String { + RefreshQueue + return "OK" +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java b/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java index 8ea823b65d0..be12bdb0b1a 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java +++ b/compiler/tests/org/jetbrains/jet/codegen/PropertyGenTest.java @@ -185,4 +185,8 @@ public class PropertyGenTest extends CodegenTestCase { public void testKt1170() throws Exception { blackBoxFile("regressions/kt1170.kt"); } + + public void testKt1159() throws Exception { + blackBoxFile("regressions/kt1159.kt"); + } }