You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classRadiationDescriber{publicconstructor(){// At the time of this writing (Aug 2023), there are only static usages of this type, so the constructor has been// disallowed. If state is ever needed, feel free to change this. See// https://github.com/phetsims/greenhouse-effect/issues/339.assert&&assert(false,'Intended, at least originally, to only be used statically.');}
The assertion is unnecessary. In general, the way to "disallow" a constructor is to make it private:
classRadiationDescriber{// At the time of this writing (Aug 2023), there are only static usages of this type, so the constructor is private. If state is ever // needed, feel free to change this. See https://github.com/phetsims/greenhouse-effect/issues/339.privateconstructor(){}
The text was updated successfully, but these errors were encountered:
In RadiationDescriber.ts:
The assertion is unnecessary. In general, the way to "disallow" a constructor is to make it
private
:The text was updated successfully, but these errors were encountered: