type restriction no longer respected with indirect call involving const enum with number values #61033
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
π Search Terms
const enum
π Version & Regression Information
not sure, i think it has been like this for a long time, still present in latest version 5.7.2
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.7.3#code/KYDwDg9gTgLgBAYwgOwM72MgrgWzgFWHTgG8AoOOAQTgF44BmABiYBoK4AhOuARgCYGZAL5kySNPBhEYAMWQ8AFAEMAXARkBKOgD44ysdPTzFhdADoqmsQHobcYFCjR9qB+GAJpAEzJG5yIr81uIoxP4AksjeAJZQnjAAwsoANilKanDYOABGjtq0ev4mytp2cDHwqAAWEFgp3g5OLtWOwK5wAO7AaWJk5SmVjqlwMACeYMBkoJCwoxPtZjAAMkNQqfgLPMxMcAA+fIKhkqMy8vwZ6kur0uspm5MFegZ+Z8j8pjKWIeWOzlAdGYJYC+YrvIIhCThGRRWLxLzJNIXegqdTZPJQJ6nYzg0qUX7NAHKNxArwgshAA
π» Code
π Actual behavior
as noted in above
π Expected behavior
as noted in above
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: