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

Absurd formatting of a (deprecated) secondary constructor #110

Closed
sjrd opened this issue Mar 9, 2016 · 0 comments
Closed

Absurd formatting of a (deprecated) secondary constructor #110

sjrd opened this issue Mar 9, 2016 · 0 comments

Comments

@sjrd
Copy link

sjrd commented Mar 9, 2016

Original:

@js.native
class ClipboardEvent(`type`: String, settings: ClipboardEventInit) extends Event {
  @deprecated("Use the overload with a ClipboardEventInit instead.", "0.8.1")
  def this(`type`: String, settings: js.Dynamic) = this(`type`, settings.asInstanceOf[ClipboardEventInit])

Scalafmt:

@js.native
class ClipboardEvent(`type` : String, settings: ClipboardEventInit)
    extends Event {
  @deprecated("Use the overload with a ClipboardEventInit instead.", "0.8.1") def this (`type` : String,
  settings: js.Dynamic) = this(
      `type`, settings.asInstanceOf[ClipboardEventInit])

I would like the input to look like this:

@js.native
class ClipboardEvent(`type` : String, settings: ClipboardEventInit)
    extends Event {
  @deprecated("Use the overload with a ClipboardEventInit instead.", "0.8.1")
  def this (`type`: String, settings: js.Dynamic) =
    this(`type`, settings.asInstanceOf[ClipboardEventInit])

Using

  • 0.1.1
  • default
olafurpg added a commit that referenced this issue Mar 9, 2016
* Fixes #111
* Fixes #110
* Fixes #96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants