fix #526 concrete classes can't have self types