class TypeInfer(self: Int, other: Int) { def test(num: Int, word: String, fun1: (Int, Int) => Int): Unit = { fun1(self, other) } def test(word: String, num: Int, fun1: (Int, Int) => Int): Unit = { fun1(self, other) } def test1(num: String, word: Int…