9 lines
225 B
Text
9 lines
225 B
Text
|
|
// throws an error
|
||
|
|
def nothing: 0 -> mightBeNothing;
|
||
|
|
|
||
|
|
// throws an error
|
||
|
|
{ nothing: 0 -> mightBeNothing }
|
||
|
|
|
||
|
|
// OK, simply results in the empty structure without a field called 'nothing'
|
||
|
|
{ 0 -> mightBeNothing -> (nothing: $) }
|