From 04fc8589d308a6dc254d13b20079a69e1aafcb93 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 4 Dec 2024 17:50:08 +0100 Subject: Add kotlin alternative (which works / at least does not infinite compile) --- src/main/kotlin/moe/nea/firm/ManagedConfig.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin') diff --git a/src/main/kotlin/moe/nea/firm/ManagedConfig.kt b/src/main/kotlin/moe/nea/firm/ManagedConfig.kt index 35f6a9d..64b04d3 100644 --- a/src/main/kotlin/moe/nea/firm/ManagedConfig.kt +++ b/src/main/kotlin/moe/nea/firm/ManagedConfig.kt @@ -9,13 +9,16 @@ interface InterfaceB { } interface InterfaceA +interface InterfaceC + +fun createInterfaceAKotlin():InterfaceA = TODO() fun funA( intA: InterfaceA, intB: InterfaceB, ) {} -fun funB() where E : Enum, E : JavaHelper { +fun funB() where E : Enum, E : InterfaceC { funA( JavaHelper.createInterfaceA(), InterfaceB.default(), -- cgit