is it possible to generate compiler warnings when ...
# getting-started
m
is it possible to generate compiler warnings when violating requirements? e.g.
Copy code
value class Example(val value: UInt){
		init{
			require(waarde <= 999_999_999u)
		}
	}
obviously this doesn't work, but a range check on numbers seems trivial when you actually call constructors
t
will the actual value always be known at compile time?
p
you may wish to have a look at arrow analysis
👍 1