mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
test dsl: Add TODO on type synonyms
This commit is contained in:
parent
f177b1ffaa
commit
26d8973746
@ -20,6 +20,8 @@ interface LedgerDSLInterpreter<R, out T : TransactionDSLInterpreter<R>> : Output
|
||||
* This is the class the top-level primitives deal with. It delegates all other primitives to the contained interpreter.
|
||||
* This way we have a decoupling of the DSL "AST" and the interpretation(s) of it. Note how the delegation forces
|
||||
* covariance of the TransactionInterpreter parameter
|
||||
*
|
||||
* TODO (Kotlin 1.1): Use type synonyms to make the type params less unwieldy
|
||||
*/
|
||||
class LedgerDSL<R, out T : TransactionDSLInterpreter<R>, out L : LedgerDSLInterpreter<R, T>> (val interpreter: L) :
|
||||
LedgerDSLInterpreter<R, TransactionDSLInterpreter<R>> by interpreter {
|
||||
|
Loading…
Reference in New Issue
Block a user