assertAreSealed

Asserts that all class declarations are sealed classes.

Example:

classes.assertAreSealed()

Throws

if any class is not marked with the 'sealed' modifier.


Asserts that all class declarations in the scope are sealed classes.

Throws

if any class is not marked with the 'sealed' modifier.