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
Any thoughts on Ceylon-style union and intersection types?
Uncategorized
19
9276
August 14, 2017
Union types
Language Design
141
135019
October 28, 2025
Multiple types like in TypeScript
Language Design
10
11495
June 23, 2020
Implementing an alternative to union types
Uncategorized
1
361
August 20, 2024
Functions not only returns single values but they also gives us errors/exceptions
Language Design
15
1406
June 26, 2024