addSynonym

abstract fun addSynonym(existing: String, vararg synonym: String)

Makes all synonym synonyms of existing.

Throws

if existing is not in the type schema.

if existing or any synonym do not uniquely define a single type. For example, if they are synonyms of multiple types. Hint: use IDs.