Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMD bug with one candidate, who have where trait #770

Closed
p6rt opened this issue Mar 12, 2009 · 4 comments
Closed

MMD bug with one candidate, who have where trait #770

p6rt opened this issue Mar 12, 2009 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Mar 12, 2009

Migrated from rt.perl.org#63812 (status was 'resolved')

Searchable as RT63812$

@p6rt
Copy link
Author

p6rt commented Mar 12, 2009

From @ilyabelikin

Hi there,

class C {
  proto method Foo ($any) { "​:)".say }
  multi method Foo ($foo where { $_ eq "foo"}) { "$foo".say }
}
C.Foo("foo"); # foo
C.Foo("bar"); # should smile but
  # die with "Parameter type check failed for $foo
in call to Foo"

Ilya

@p6rt
Copy link
Author

p6rt commented Mar 13, 2009

From @jnthn

On Thu Mar 12 06​:28​:03 2009, ihrd wrote​:

class C {
proto method Foo ($any) { "​:)".say }
multi method Foo ($foo where { $_ eq "foo"}) { "$foo".say }
}
C.Foo("foo"); # foo
C.Foo("bar"); # should smile but
# die with "Parameter type check failed for $foo
in call to Foo"

Fixed in git e8a8fb6 and added something very like the above as a spectest.

Thanks!

Jonathan

@p6rt
Copy link
Author

p6rt commented Mar 13, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 13, 2009

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Mar 13, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant