when inheriting from nonclass an error is thrown
Merge pull request #308 from MagLev/niccokunzmann/inheritence_from_nonclass

when inheriting from nonclass an error is thrown