Fix issue with functions returning functions

This commit is contained in:
Jonathan Müller 2017-03-31 15:20:41 +02:00
commit e9e9a3bbc5
3 changed files with 38 additions and 17 deletions

View file

@ -15,13 +15,13 @@ TEST_CASE("code_generator")
struct foo{
int a;
auto func(int)->int(*)[];
auto func(int)->int(*(*)(int))[42];
private:
int const b=42;
};
int(*(foo::* mptr)(int))[];
int(*(*(foo::* mptr)(int))(int))[42];
enum class bar
:int{