Skip to content

implicit conversion import error when DateTime promoted to DateTimeOffset #3908

Description

@joprice

Description

When a DateTime gets implicitly converted to a DateTimeOffset, the import op_Implicit is missing in the js library:

SyntaxError: The requested module 'https://fable.io/repl/js/repl/fable-library-js/DateOffset.js' does not provide an export named 'op_Implicit' (at 0110e4f1-0010-49d1-b621-0c084f71ae75:62:10)

Repro code

open System

let _: DateTimeOffset = DateTime.UtcNow.Date
import { op_Implicit } from "fable-library-js/DateOffset.js";
import { utcNow, date } from "fable-library-js/Date.js";

op_Implicit(date(utcNow()));

Related information

  • Fable version: 4.19.3
  • Operating system: OSX

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions