JS: don't fail when generating signature for function which refers to undefined type
This commit is contained in:
@@ -184,6 +184,12 @@ class EncodeSignatureTest {
|
||||
""")
|
||||
}
|
||||
|
||||
@Test
|
||||
fun missingType() {
|
||||
assertSignature(",kotlin.Int", "fun test(a: WrongClass, b: Int) {}")
|
||||
assertSignature(",kotlin.Int", "fun test(a: WrongClass<String>, b: Int) {}")
|
||||
}
|
||||
|
||||
@Suppress("ObjectLiteralToLambda")
|
||||
private fun assertSignature(expectedEncoding: String, codeSnippet: String, name: String = "test") {
|
||||
val disposable = object : Disposable {
|
||||
|
||||
Reference in New Issue
Block a user