Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript/idea auto create method bug #29730

Open
bluelovers opened this issue Feb 4, 2019 · 1 comment
Open

typescript/idea auto create method bug #29730

bluelovers opened this issue Feb 4, 2019 · 1 comment
Labels
Bug A bug in TypeScript
Milestone

Comments

@bluelovers
Copy link
Contributor

TypeScript Version: 3.4.0-dev.201xxxxx

Search Terms:

Code

video here
https://www.youtube.com/watch?v=3WaM6SvJk-c&feature=youtu.be

import novelInfo, { IMdconfMeta, _handleDataForStringify } from 'node-novel-info';

class  A
{
	protected _handleDataForStringify(...argv)
	{
		// @ts-ignore
		return _handleDataForStringify(...argv)
	}
}

class B extends A
{

	// create  _handleDataForStringify here

}

Expected behavior:

	protected _handleDataForStringify(...argv): IMdconfMeta
	{
		return super._handleDataForStringify(...argv);
	}

Actual behavior:

	protected _handleDataForStringify(...argv): IMdconfMeta
	{
		return super._handleDataForStringify(argv);
	}

Playground Link:

Related Issues:

@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Feb 4, 2019
@RyanCavanaugh
Copy link
Member

To clarify, the issue here is that the auto-generated super call does not spread the rest arg into the argument position

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants