Justin
09/30/2019, 6:27 PMfun <T: TestCase> T.hasAnnotation(annotation: String): Boolean {
return this::class.annotations.map { it.toString() }.any { it.contains(annotation) }
}
This method works fine on JVM and Native, but gives this error on JS:
e: /Users/justin/project/Extensions.kt: (16, 24): Unsupported [This reflection API is not supported yet in JavaScript]
This code only exists in my test target, so I would be comfortable using an experimental setting if one exists...