Skip to content

Kotlin: Add a ministdlib test #10633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 14, 2022
Merged

Kotlin: Add a ministdlib test #10633

merged 2 commits into from
Oct 14, 2022

Conversation

igfoo
Copy link
Contributor

@igfoo igfoo commented Sep 29, 2022

This should make it easier to diagnose certain kinds of problems.

This should make it easier to diagnose certain kinds of problems.
@igfoo igfoo requested a review from a team as a code owner September 29, 2022 17:21
@igfoo igfoo requested review from a team and removed request for a team October 3, 2022 11:25
tamasvajk
tamasvajk previously approved these changes Oct 3, 2022
Copy link
Contributor

@tamasvajk tamasvajk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks super useful.

open operator fun equals(other: Any?): Boolean { return this.equals(other) }
}

public open class String {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are String, Boolean, and Int declared as open?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I'd just made everything an open class without checking. Fixed, thanks!

infix fun xor(other: Int): Int { return this.xor(other) }
}

public open class Unit {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this match more closely the stdlib, so shouldn't it be public object Unit?

@igfoo igfoo merged commit 05f70e9 into github:main Oct 14, 2022
@igfoo igfoo deleted the igfoo/ministdlib branch October 14, 2022 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants