Skip to content
Browse files

remove reporting of variable name from uninit warnings

they produced too many false positives
  • Loading branch information...
1 parent c946d0f commit c39b887388d85c70e0a2a17de8cdacf751461c7d @moritz moritz committed Apr 17, 2013
Showing with 3 additions and 12 deletions.
  1. +3 −12 src/core/Mu.pm
View
15 src/core/Mu.pm
@@ -187,27 +187,18 @@ my class Mu {
proto method Numeric(|) { * }
multi method Numeric(Mu:U \v:) {
- warn (nqp::iscont(v)
- ?? "use of uninitialized variable { v.VAR.name }"
- !! "use of uninitialized value")
- ~ " of type {self.^name} in numeric context";
+ warn "use of uninitialized value of type {self.^name} in numeric context";
0
}
proto method Real(|) { * }
multi method Real(Mu:U \v:) {
- warn (nqp::iscont(v)
- ?? "use of uninitialized variable { v.VAR.name }"
- !! "use of uninitialized value")
- ~ " of type {self.^name} in numeric context";
+ warn "use of uninitialized value of type {self.^name} in numeric context";
0
}
proto method Str(|) { * }
multi method Str(Mu:U \v:) {
- warn (nqp::iscont(v)
- ?? "use of uninitialized variable { v.VAR.name }"
- !! "use of uninitialized value")
- ~ " of type {self.^name} in string context";
+ warn "use of uninitialized value of type {self.^name} in string context";
''
}
multi method Str(Mu:D:) {

0 comments on commit c39b887

Please sign in to comment.
Something went wrong with that request. Please try again.