This program now compiles and runs under the Epoch trunk:
//
// SUMTYPEFUNCTION.EPOCH
//
// Basic test of functions operating on sum types
//
type test : integer | string
sumfunc : integer param
{
assert(param == 42)
}
sumfunc : string param
{
assert(param == "bletch")
}
entrypoint :
{
test foo = 42
test bar =...
//
// SUMTYPEFUNCTION.EPOCH
//
// Basic test of functions operating on sum types
//
type test : integer | string
sumfunc : integer param
{
assert(param == 42)
}
sumfunc : string param
{
assert(param == "bletch")
}
entrypoint :
{
test foo = 42
test bar =...
Create a custom theme