aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firm/ManagedConfig.kt
blob: 35f6a9dd85e5af573d60339dd9189151ccbd8a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package moe.nea.firm

import ext.JavaHelper

interface InterfaceB<E> {
	companion object {
		fun <E : Enum<E>> default() = object : InterfaceB<E> {}
	}
}

interface InterfaceA<T>

fun <E : Any> funA(
	intA: InterfaceA<E>,
	intB: InterfaceB<E>,
) {}

fun <E> funB() where E : Enum<E>, E : JavaHelper {
	funA(
		JavaHelper.createInterfaceA(),
		InterfaceB.default(),
	)
}