Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4165da5e81 |
@@ -51,7 +51,7 @@ open class LynonDecoder(val bin: BitInput, val settings: LynonSettings = LynonSe
|
|||||||
println("expected class name $className")
|
println("expected class name $className")
|
||||||
return scope.get(className.value)?.value?.let {
|
return scope.get(className.value)?.value?.let {
|
||||||
if (it !is ObjClass)
|
if (it !is ObjClass)
|
||||||
scope.raiseClassCastError("Expected obj class but got ${it::class.qualifiedName}")
|
scope.raiseClassCastError("Expected obj class but got ${it::class.simpleName}")
|
||||||
it
|
it
|
||||||
} ?: scope.raiseSymbolNotFound("can't deserialize: not found type $className")
|
} ?: scope.raiseSymbolNotFound("can't deserialize: not found type $className")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user