We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
KaType.upperBoundIfFlexible
KaType.lowerBoundIfFlexible
1 parent e28053c commit e6c79bbCopy full SHA for e6c79bb
Writerside/topics/KaType.md
@@ -60,10 +60,10 @@ type because it may be unknown if this type can accept `null`.
60
ordinary calls are valid on it.
61
62
`fun KaType.upperBoundIfFlexible(): KaType`
63
-: Returns the upper bound if the given type is a flexible type, and `null` otherwise.
+: Returns the upper bound if the given type is a flexible type, and the given type itself otherwise.
64
65
`fun KaType.lowerBoundIfFlexible(): KaType`
66
-: Returns the lower bound if the given type is a flexible type, and `null` otherwise.
+: Returns the lower bound if the given type is a flexible type, and the given type itself otherwise.
67
68
## Type relation utilities
69
0 commit comments