Skip to content

Commit

Permalink
Workaround #341
Browse files Browse the repository at this point in the history
  • Loading branch information
ileasile committed Nov 2, 2021
1 parent ea275e1 commit 8d7ae72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ fun KClass<*>.isSubclassOfCatching(superType: KClass<*>): Boolean {
false
} catch (e: KotlinReflectionInternalError) {
false
} catch (e: InternalError) {
// Workaround for #341
false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,14 @@ class ReplTests : AbstractSingleReplTest() {
(res as (Int) -> Int)(1) shouldBe 2
}

@Test
fun testAnonymousObjectRendering() {
eval("42")
eval("val sim = object : ArrayList<String>() {}")
val res = eval("sim").resultValue
res.toString() shouldBe "[]"
}

@Test
fun testOutVarRendering() {
eval("Out").resultValue.shouldNotBeNull()
Expand Down

0 comments on commit 8d7ae72

Please sign in to comment.