This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25425 - enum should be able to inherit from another enum
Summary: enum should be able to inherit from another enum
Status: NEW
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-23 07:02 UTC by Mounir Lamouri
Modified: 2014-04-23 07:02 UTC (History)
2 users (show)

See Also:


Attachments

Description Mounir Lamouri 2014-04-23 07:02:48 UTC
It would be pretty neat if we could declare:

enum Foo {
  "foo",
}

enum Bar : Foo {
  "bar",
}

I have this need for the Screen Orientation API and I sadly have to declare two different overlapping enums.