Skip to content

switch == invocation #450

Closed
Closed
@DartBot

Description

@DartBot

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).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions