Skip to content

Allow class objects in constructors #8486

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


please add the class name reference by argument, like this example:

class Foo {
  
}

main() {
  myFunction(Foo);
}

myFunction(class) {
  class f = new class(); //class = Foo
}

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).closed-duplicateClosed in favor of an existing reporttype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions