Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ambiguous use of operator '<' #1041

Open
@LinkinParkBoy

Description

@LinkinParkBoy

What did you do?

let json = JSON(["name":"Jack", "age": 25])
print(json)

What did you expect to happen?

{
"name" : "Jack",
"age" : 25
}

What actually happened instead?

build/checkouts/SwiftyJSON/Source/SwiftyJSON/SwiftyJSON.swift:1215:51: error: ambiguous use of operator '<'
case (.number, .number): return lhs.rawNumber < rhs.rawNumber

Environment

List the software versions you're using:

  • SwiftyJSON:4.3.0
  • Swift version 5.1 (swift-5.1.2-RELEASE)
    Target: x86_64-unknown-linux-gnu

Please also mention which package manager you used and its version. Delete the
other package managers in this list:
Swift Package Manager - Swift 5.1.0 (331fa5cb)

Project that demonstrates the issue

Please link to a project we can download that reproduces the issue. Feel free
to delete this section if it's not relevant to the issue (eg - feature request).

The project should beshort, self-contained, and correct example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp