fix property enforcement
Merge pull request #1718 from 9rnsr/enforceProp

fix property enforcement
Result of __traits(parent) may not have a type
Merge pull request #1719 from yebblies/typeofmodule

Result of __traits(parent) may not have a type