#1040 compilerScript throws ArgErr

Akcelisto Thu 25 Mar 2010

Single file Compile.fan in pod tests

using [java]java.awt::Graphics2D

class Compile{
  static Void main(){
    out := `temp`.toFile.out
    out.print(
      """using tests
         class B:A{}""")
    out.close
    Env.cur.compileScript(`temp`.toFile)
  }
}

class A{
  Void draw(|Graphics2D| drw){}
}

throws

sys::ArgErr: Invalid type signature '|[java]java.awt::Graphics2D->sys::Void|'

tactics Thu 25 Mar 2010

I swear, Akcelisto, you are merciless towards the type system.

This is the same as issue `http://fantom.org/sidewalk/topic/965`. The compiler::TypeParser class can't handle FFI types.

Login or Signup to reply.