Kotlin Discussions
In Kotlin, can a function return either String or Int?
Support
jstuyts
February 20, 2020, 11:43am
2
See this thread for the discussion about union types:
Union types
1 Like
show post in topic
Related Topics
Topic
Replies
Views
Activity
Union types
Language Design
126
107648
April 1, 2023
Multiple types like in TypeScript
Language Design
10
9924
June 23, 2020
Is a sealed interface the best way to handle union types
Support
2
129
April 25, 2024
How will Kotlin handle Union types from JavaScript/TypeScript?
JavaScript
7
7135
June 16, 2016
Implementation proposal for union types
Language Design
6
1168
August 8, 2018