Dechenjm / crack-language

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

initializing a member variable via assignment not type checked #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

class A { }
class B {
    A a;
    oper init(): a=5 { }
}

Output:
Bad IR is generated which fails LLVM moduleverification.

Notes:
There seems to be no type checking in the initializer lists.

Original issue reported on code.google.com by weyrick on 1 Jul 2010 at 7:35

GoogleCodeExporter commented 9 years ago

Original comment by weyrick on 1 Jul 2010 at 7:36

GoogleCodeExporter commented 9 years ago

Original comment by mind...@gmail.com on 1 Jul 2010 at 8:12

GoogleCodeExporter commented 9 years ago

Original comment by mind...@gmail.com on 4 Aug 2010 at 11:55

GoogleCodeExporter commented 9 years ago

Original comment by mind...@gmail.com on 4 Aug 2010 at 1:18