aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/issues
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/test/kotlin/issues')
-rw-r--r--plugins/base/src/test/kotlin/issues/IssuesTest.kt18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/base/src/test/kotlin/issues/IssuesTest.kt b/plugins/base/src/test/kotlin/issues/IssuesTest.kt
index ea2f0f8e..e34c610a 100644
--- a/plugins/base/src/test/kotlin/issues/IssuesTest.kt
+++ b/plugins/base/src/test/kotlin/issues/IssuesTest.kt
@@ -1,7 +1,7 @@
package issues
-import org.jetbrains.dokka.model.Class
-import org.jetbrains.dokka.model.Function
+import org.jetbrains.dokka.model.DClass
+import org.jetbrains.dokka.model.DFunction
import org.junit.Test
import utils.AbstractModelTest
@@ -33,16 +33,16 @@ class IssuesTest : AbstractModelTest("/src/main/kotlin/issues/Test.kt", "issues"
|}
"""
) {
- with((this / "issues" / "Test").cast<Class>()) {
+ with((this / "issues" / "Test").cast<DClass>()) {
// passes
- (this / "working").cast<Function>().type.constructorFqName equals "kotlin.String"
- (this / "doSomething").cast<Function>().type.constructorFqName equals "kotlin.String"
+ (this / "working").cast<DFunction>().type.constructorFqName equals "kotlin.String"
+ (this / "doSomething").cast<DFunction>().type.constructorFqName equals "kotlin.String"
// fails
- (this / "brokenGenerics").cast<Function>().type.constructorFqName equals "kotlin.collections.List"
- (this / "brokenApply").cast<Function>().type.constructorFqName equals "issues.Test"
- (this / "brokenRun").cast<Function>().type.constructorFqName equals "issues.Test"
- (this / "brokenLet").cast<Function>().type.constructorFqName equals "issues.Test"
+ (this / "brokenGenerics").cast<DFunction>().type.constructorFqName equals "kotlin.collections.List"
+ (this / "brokenApply").cast<DFunction>().type.constructorFqName equals "issues.Test"
+ (this / "brokenRun").cast<DFunction>().type.constructorFqName equals "issues.Test"
+ (this / "brokenLet").cast<DFunction>().type.constructorFqName equals "issues.Test"
}
}
}