Skip to content
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

Improve preconditions #957

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Improve preconditions #957

wants to merge 2 commits into from

Conversation

GlassBricks
Copy link
Contributor

  • Checks for some specs were in inconsistent locations: in both init blocks of the Spec class and in the build function. There was even a redundant repeated check in FunSpec. I moved these checks into the build method. Since the Spec constructor is called from the build method, this shouldn't change behavior.
  • Added some missing tests for FunSpec preconditions.

Copy link
Collaborator

@Egorand Egorand left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

"KotlinPoet doesn't allow setting the inline modifier on " +
"properties. You should mark either the getter, the setter, or both inline."
}
val getter = getter
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure I get why local variables are needed here

@Egorand Egorand changed the base branch from master to main July 5, 2023 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants