praveenvvstgy / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

Defining an abstract method with the wrong return type causes compiler segfault #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
import crack.cont.array Array;
@abstract
This code causes both JIT and AOT to segfault:

class Base {
  oper init() {}

  @abstract
  int wrongRet();
}

class Impl : Base{
  oper init(): Base() {
  }

  Array[int] wrongRet(){
    return Array[int]![0];
  }
}

Original issue reported on code.google.com by Conrad.S...@gmail.com on 30 May 2012 at 10:35

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 9bb35fe4b5bb.

Original comment by mind...@gmail.com on 14 Jun 2012 at 12:18