Added: Test case for duplicate ivar in superclass

This commit is contained in:
Martin Carlberg
2015-03-03 11:33:50 +01:00
parent b47ad50d42
commit 1d1aae03f3
@@ -0,0 +1,28 @@
// Expected output: 256
/*
START_EXPECTED
Error on line 10778 of file [unknown]
SyntaxError:
int myIvar;
^
ERROR line 12 in file:[__PATH__]: Instance variable 'myIvar' is already declared for class MySubclass in superclass MySuperclass
END_EXPECTED
*/
@import <Foundation/Foundation.j>
@implementation MySuperclass : CPObject
{
int myIvar;
}
@end
@implementation MySubclass : MySuperclass
{
int myIvar;
}
@end