# Cannot infer type for type parameter "T", seems to be compiler issue

**URL:** <https://forum.fuel.network/t/cannot-infer-type-for-type-parameter-t-seems-to-be-compiler-issue/6796>\
**Category:** Sway\
**Tags:** fuelup\
**Created:** [October 5, 2024, 12:18pm UTC](https://forum.fuel.network/t/cannot-infer-type-for-type-parameter-t-seems-to-be-compiler-issue/6796 "2024-10-05T12:18:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eesheng](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@eesheng](https://forum.fuel.network/u/eesheng)\
**Post date:** [October 5, 2024, 12:18pm UTC](https://forum.fuel.network/t/cannot-infer-type-for-type-parameter-t-seems-to-be-compiler-issue/6796/1 "2024-10-05T12:18:47Z")

</div>

Hi @naz3eh, why am I facing this issue?  
Seems to be `let test_contract = abi(Test, teste_contract_id.unwrap().into()); ` this issue  
Cannot infer type for type parameter “T”, seems to be compiler issue

````auto
// Type implementation
//
impl<T> Option<T> {
    // Querying the contained values
    //
    /// Returns whether the option is the `Some` variant.
    ///
    /// # Returns
    ///
    /// * [bool] - Returns `true` if the option is `Some`, otherwise `false`.
    ///
    /// # Examples
    ///
    /// ```sway
    /// fn foo() {
    /// let x: Option<u32> = Some(2);
    /// assert(x.is_some());
    ///
    /// let x: Option<u32> = None;
    /// assert(!x.is_some());
    /// }
    /// ```
    pub fn is_some(self) -> bool {
        match self {
            Self::Some(_) => true,
            _ => false,
        }
    }

````

Error:

```auto
.forc/git/checkouts/std-9be0d6062747ea7/2156bfbbee01ffb85bfca2aae8f185f8e7c715a4/sway-lib-std/src/option.sw:106:6

```

` Cannot infer type for type parameter "T".`

This is my fuelup show:

```auto
Default host: x86_64-unknown-linux-gnu
fuelup home: /home/test/.fuelup

Installed toolchains
--------------------
latest-x86_64-unknown-linux-gnu (default)
nightly-2024-05-28-x86_64-unknown-linux-gnu
testnet-x86_64-unknown-linux-gnu

active toolchain
----------------
latest-x86_64-unknown-linux-gnu (default)
  forc : 0.64.0
    - forc-client
      - forc-deploy : 0.64.0
      - forc-run : 0.64.0
    - forc-crypto : 0.64.0
    - forc-debug : 0.64.0
    - forc-doc : 0.64.0
    - forc-fmt : 0.64.0
    - forc-lsp : 0.64.0
    - forc-tx : 0.64.0
    - forc-wallet : 0.9.1
  fuel-core : 0.36.0
  fuel-core-keygen : 0.36.0

fuels versions
--------------
forc : 0.66
forc-wallet : 0.66.5

```

---

<div class="post-metadata">

**Author:** ![eesheng](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@eesheng](https://forum.fuel.network/u/eesheng)\
**Post date:** [October 7, 2024, 6:30am UTC](https://forum.fuel.network/t/cannot-infer-type-for-type-parameter-t-seems-to-be-compiler-issue/6796/2 "2024-10-07T06:30:40Z")

</div>

Seems to be compiler issue: [Why is this Compiling error happening for v0.64?](https://forum.fuel.network/t/why-is-this-compiling-error-happening-for-v0-64/6802)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/5/57d5a345cc15a64b636e0d56e042857f8a0e80b1.png) [@system](https://forum.fuel.network/u/system)\
**Post date:** [October 28, 2024, 2:31am UTC](https://forum.fuel.network/t/cannot-infer-type-for-type-parameter-t-seems-to-be-compiler-issue/6796/3 "2024-10-28T02:31:38Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
