dao icon indicating copy to clipboard operation
dao copied to clipboard

Minor bug: no exception for a free unknown enum symbol

Open dumblob opened this issue 10 years ago • 0 comments

The code

type E = enum<a, b, c>
x = E.b
io.writeln(x == $m ? 'equal' : 'not_equal')

prints not_equal instead of throwing an exception that $m doesn't exist. It might be related to https://github.com/daokoder/dao/issues/470 and/or https://github.com/daokoder/dao/issues/485 .

dumblob avatar Nov 14 '15 16:11 dumblob