Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test attribute suggestion
 ...when a lexical of the same name is accidentally used
  • Loading branch information
hoelzro committed Jan 15, 2015
1 parent 5b8cca1 commit 22f9e21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S32-exceptions/misc.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 275;
plan 276;

#?DOES 1
throws_like { Buf.new().Str }, X::Buf::AsStr, method => 'Str';;
Expand Down Expand Up @@ -426,6 +426,8 @@ if $emits_suggestions {
}

throws_like 'sub greet($name) { say "hello, $nam" }', X::Undeclared, suggestions => '$name';

throws_like 'class Greeter { has $.name; method greet { say "hi, $name" } }', X::Undeclared, suggestions => '$!name';
}

# RT 77270
Expand Down

0 comments on commit 22f9e21

Please sign in to comment.