jan_flanders

Untitled

Jun 5th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package  
  2. {
  3.     public class Test
  4.     {
  5.         private static var getBool:Function ;
  6.  
  7.         public static function foo():Boolean
  8.         {
  9.             return getBool();   // OK
  10.             return Test.getBool();  // Warning: Class used where a Boolean value was expected.  
  11.                         // The expression will be type coerced to Boolean.
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment