[JS BE] KT-22053 Fix constructor delegation of immediate subtype of Error

This commit is contained in:
Svyatoslav Kuzmich
2018-08-15 15:47:02 +03:00
parent 5045fa446a
commit 7578dbf8f2
5 changed files with 45 additions and 2 deletions
@@ -5,7 +5,6 @@ package foo
class MyException(m: String? = null): Exception(m)
class MyException2(m: String? = null): Throwable(m)
// TODO: add direct inheritors of Throwable:
// - with secondary constructors
// - with cause only, in the primary constructor
fun check(e: Throwable, expectedString: String) {