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

checker: missing string/bool invalid operation validation as concrete type #18011

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Apr 21, 2023

Fix #18007 (first issue)

struct Wrapped[T] {
	value T
}

fn (w Wrapped[T]) double() Wrapped[T] {
	return Wrapped[T]{w.value * 2}
}

fn make_wrapped[T](value T) Wrapped[T] {
	return Wrapped[T]{value}
}

fn main() {
	println(make_wrapped('str'))
}

@felipensp felipensp changed the title checker: missing string invalid operation validation checker: missing string/bool invalid operation validation on generic types Apr 21, 2023
@felipensp felipensp changed the title checker: missing string/bool invalid operation validation on generic types checker: missing string/bool invalid operation validation as concrete type Apr 21, 2023
@spytheman spytheman added Needs Rebase The code of the PR must be rebased over current master before it can be approved. Breaking Change This PR introduces changes that break backward compatibility. Requires manual review. labels Aug 21, 2023
@JalonSolov
Copy link
Contributor

Over a year since last update... it this still valid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Change This PR introduces changes that break backward compatibility. Requires manual review. Needs Rebase The code of the PR must be rebased over current master before it can be approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C Error when running mawfig's Generics example
3 participants