Closed
Description
Example:
class Main
{
static function main()
{
switch (new Node(1))
{
case { cur: 1, next: ({ cur : 2, next : _ }) }:
throw "assert";
case _:
trace('correct');
}
}
}
class Node<T>
{
public var cur:T;
public var next:Null<Node<T>>;
public function new(cur)
{
this.cur = cur;
}
}
This should trace correct
, but instead doesn't trace anything and does not throw either.
Metadata
Metadata
Assignees
Labels
No labels
Activity