All Downloads are FREE. Search and download functionalities are using the official Maven repository.

defs.main-tests.source.idltest.algebraics.domain Maven / Gradle / Ivy

The newest version!
domain idltest.algebraics

data Success { message: str }
data Failure { code: int8 }


adt Alternative {
  Success as TestSuccess
  Failure
}

adt ShortSyntax = Success as TestSuccess | Failure

id AdtTestID {
    id: str
}

data ComplexAdt {
    id: AdtTestID
}

data ComplexAdt2 {
    id: AdtTestID
}

adt AdtTester {
    ComplexAdt
    ComplexAdt2
}

//https://github.com/7mind/izumi/issues/363
/*
adt Bad0 {
    Success
    Failure
}

adt Bad1 {
    Success
    Failure
}

adt Bad {
    Bad0
    Bad1
}
*/

mixin AFace {
    a: i32
}

adt AdtWithInterface {
    AFace
    Success
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy