Advertisement

Compiler crash on double function compiler error

Started by December 21, 2018 12:27 PM
2 comments, last by WitchLord 5 years, 11 months ago

The following code will first cause the error "A function with the same name and parameters already exists", and then crash:


class Foo
{
	void a() {}
	void a() {}
}

class Bar : Foo
{
	void a() override {}
}

class FooBar : Bar
{
}

void Test()
{
	FooBar@ b = FooBar();
	b.a();
}

The empty FooBar class inheriting Bar is required, it doesn't crash without.

Thanks. I'll have it fixed before the release.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

I've fixed this in revision 2575.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement