0 Replies Latest reply on Feb 7, 2007 2:41 AM by alecmce

    Errant Compiler Error

      The following function will cause Error #1170: Function does not return a value. If you uncomment the return value outside the switch, it will return "everything is fine".

      public function test():String
      var i:int = 3;
      switch (i)
      case 3:
      return "everything is fine";
      //return "problem";