Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package
- {
- public class Test
- {
- private static var getBool:Function ;
- public static function foo():Boolean
- {
- return getBool(); // OK
- return Test.getBool(); // Warning: Class used where a Boolean value was expected.
- // The expression will be type coerced to Boolean.
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment