Kapt: Fix broken assertion

(cherry picked from commit 36b0b52)
This commit is contained in:
Yan Zhulanow
2016-08-18 18:24:35 +03:00
committed by Yan Zhulanow
parent 46367d720c
commit 49bd303988
2 changed files with 10 additions and 1 deletions
@@ -266,5 +266,7 @@ private fun assertKindNot(typeMirror: TypeMirror, vararg kinds: TypeKind): Unit
}
private fun assertJeType(type: TypeMirror) {
illegalArg("Must be a subclass of JePsiType, got ${type.javaClass.name}")
if (type !is JeTypeMirror) {
illegalArg("Must be a subclass of JePsiType, got ${type.javaClass.name}")
}
}