-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).Dart language related items (some items might be better tracked at github.com/dart-lang/language).
Description
This issue was originally filed by kresten.kra...@gmail.com
When doing
switch(v) { case e: ... }
The spec says that it tests v==e,
the vm does e.operator ==(v)
the frog compiles it to JS: "switch(v) { case e: ... }"
Neither of which correspond to the spec. Which is right?
Attached test case tests the spec semantics.
Attachment:
SwitchEqualsTest.dart (826 Bytes)
Metadata
Metadata
Assignees
Labels
area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).Dart language related items (some items might be better tracked at github.com/dart-lang/language).