mirror of https://github.com/lukechilds/rollup.git
Browse Source
include superclass when including a class declarationlegacy-quote-reserved-properties
Rich Harris
8 years ago
committed by
GitHub
5 changed files with 25 additions and 0 deletions
@ -0,0 +1,4 @@ |
|||||
|
module.exports = { |
||||
|
description: 'includes superclass (#932)', |
||||
|
buble: true |
||||
|
}; |
@ -0,0 +1,5 @@ |
|||||
|
export class Base { |
||||
|
foo () { |
||||
|
return true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
import { Thing } from './thing'; |
||||
|
|
||||
|
const thing = new Thing(); |
||||
|
|
||||
|
assert.ok( thing.foo() ); |
||||
|
assert.ok( thing.bar() ); |
@ -0,0 +1,7 @@ |
|||||
|
import { Base } from './base.js'; |
||||
|
|
||||
|
export class Thing extends Base { |
||||
|
bar () { |
||||
|
return true; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue