hmm... idea, keyword `test` on a class makes the c...
# language-proposals
x
hmm... idea, keyword
test
on a class makes the class internal, and so that you can't directly call any constructors. on a method it would make it internal (is this a thing for a method?). Motivation, avoid ID10T errors involving trying to new up the test in your code, vs trying to new up the class under test 😕 also the internal keyword is long and test reads better.
😱 2
r
keyword
test
on a class makes the class internal
How
test
can reads better than
internal
if the class is internal?
x
'cause it would say
test class
instead of
internal class
actually I would consider going further on reflection, a test class would be private to kotlin by default, nothing else should be able to reference it