JetBrains / JetBrains/rd

interfacedef's method() generates strange signature for a nullable return type

Open
#232 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
417
Forks
62
Avg merge
9h 15m
Merged PRs (30d)
7

Description

> I want to specify an interface with a method that has a nullable return type.
> ``` kotlin
> var IMyInterface = interfacedef("IMyInterface") {
> method("get", PredefinedType.string.nullable)
> }
> ```
>
> But it generates to:
> ``` kotlin
> interface IMyInterface
> {
> fun get() : StringNullable
> }
> ```
>
> I expected `fun get() : String?`

_Originally posted by @al-darmonski in https://github.com/JetBrains/rd/issues/206#issuecomment-877036647_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.